home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 February / PCWorld_2000-02_cd.bin / Software / Vyzkuste / xsetup / _SETUP.2 / Group3 / XQ Opera 2.xpl < prev    next >
Text File  |  1999-09-15  |  2KB  |  93 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="3"
  4. "UIPATH"="Internet\Opera\"
  5. "NAME"="Security Settings"
  6. "VERSION"="1.00"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Enable SSL v2 secured connections"
  9. "TEXT 2"="Enable SSL v3 secured connections"
  10. "TEXT 3"="Enable TLS v1 secured connections"
  11. "DESCRIPTION 1"="Some options for Opera."
  12. "DESCRIPTION 2"="Opera may be obtained at http://www.opera.com"
  13. "AUTHOR"="Xteq Systems"
  14. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  15. "COMMENT 1"="For more information, go to http://www.xteq.com"
  16. "COMMENT 2"="Thanks to CptSiskoX for the settings and the idea."
  17.  
  18.  
  19. sFile=""
  20. sVal_On="1"
  21. sVal_Off="0"
  22.  
  23. sSec="SECURITY PREFS"
  24. sV1="Enable SSL v2"
  25. sV2="Enable SSL v3"
  26. sV3="Enable TLS v1.0"
  27.  
  28.  
  29. Sub GetINIFile
  30.     s=GetWinDir
  31.     sFile=s & "OPERA.ini"
  32. End Sub
  33.  
  34. Sub Plugin_Initialize 
  35.  Call GetINIFile
  36.  
  37.  If FileExists(sFile) then
  38.  
  39.     i=IniReadValue(sFile,sSec,sV1)
  40.     if i=sVal_On then SetUiElement 1,true
  41.  
  42.     i=IniReadValue(sFile,sSec,sV2)
  43.     if i=sVal_On then SetUiElement 2,true
  44.  
  45.     i=IniReadValue(sFile,sSec,sV3)
  46.     if i=sVal_On then SetUiElement 3,true
  47.  
  48.  else
  49.     Call Disable()
  50.  End if
  51.  
  52. End Sub
  53.  
  54.  
  55. Sub Plugin_CheckData(ElementIndex)
  56. End Sub
  57.  
  58.  
  59.  
  60. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  61.  b=GetUIElement(1)
  62.  if b=true then 
  63.     s=sVal_On
  64.  else
  65.     s=sVal_Off
  66.  end if
  67.  Call iniWriteValue(sFile,sSec,sV1,s)
  68.  
  69.  b=GetUIElement(2)
  70.  if b=true then 
  71.     s=sVal_On
  72.  else
  73.     s=sVal_Off
  74.  end if
  75.  Call iniWriteValue(sFile,sSec,sV2,s)
  76.  
  77.  b=GetUIElement(3)
  78.  if b=true then 
  79.     s=sVal_On
  80.  else
  81.     s=sVal_Off
  82.  end if
  83.  Call iniWriteValue(sFile,sSec,sV3,s)
  84.  
  85. End Sub
  86.  
  87.  
  88. Sub Plugin_Terminate 
  89. End Sub
  90.  
  91.  
  92.  
  93.